//
//  ZWMainPlayerVC.m
//  WanEr
//
//  Created by 高文萍 on 15/12/20.
//  Copyright © 2015年 高文萍. All rights reserved.
//

#import "ZWMainPlayerVC.h"
#import "WanErHeader.h"
#import <AVFoundation/AVFoundation.h>
#import "ZWHomeModel.h"
@interface ZWMainPlayerVC ()
@property (weak, nonatomic) IBOutlet UIView *playBackView;
- (IBAction)returnButton:(id)sender;
@property (weak, nonatomic) IBOutlet UILabel *cityLabel;
@property (weak, nonatomic) IBOutlet UILabel *bottomCityLabel;

- (IBAction)likeButton:(UIButton *)sender;

- (IBAction)downLoadBut:(id)sender;
- (IBAction)moreBtu:(id)sender;
@property (weak, nonatomic) IBOutlet UIImageView *backImg;
@property (weak, nonatomic) IBOutlet UIView *allTimer;
@property (weak, nonatomic) IBOutlet UILabel *beginTimer;

@property (nonatomic, strong) NSMutableDictionary *recordingDic;
@property (weak, nonatomic) IBOutlet UIView *jindutiao;
@property (weak, nonatomic) IBOutlet UIButton *sliderBut;


@end

@implementation ZWMainPlayerVC


- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.recordingDic = [NSMutableDictionary dictionary];
    
    self.playBackView.layer.cornerRadius = 15;
    self.playBackView.layer.masksToBounds = YES;
    
    self.bottomCityLabel.text = self.zoomStr;
    self.cityLabel.text = self.cityStr;
    [self.backImg sd_setImageWithURL:[NSURL URLWithString:self.imgStr]];
    
    
    [self createData];
    
}

- (void)createData
{
    NSString *url = [NSString stringWithFormat:@"http://app.ziwoxz.com/agi/scenerie/detail/sid/%@",self.uId];
    [JXRAFNetWorkTool getNetWithURL:url body:nil resultKind:JXRJSON headerFile:nil success:^(id result) {
        
        self.recordingDic = result[@"data"][@"scenerie"];
        NSLog(@"----%@", self.recordingDic[@"scenerie_name"]);
        
    } failure:^(NSError *error) {
        
    }];
}

- (IBAction)returnButton:(id)sender {
    
    [self.navigationController popViewControllerAnimated:YES];
    
}



- (IBAction)likeButton:(UIButton *)sender {
    
    sender.selected = YES;
}

- (IBAction)downLoadBut:(id)sender {
}

- (IBAction)moreBtu:(id)sender {
}
@end
